Logger

public final class Logger

Static class to configure log and create log entries.

Functions

Link copied to clipboard
public static void debug(String message)
Logs a DEBUG message.
public static void debug(Supplier<String> msgSupplier)
Logs a lazily constructed DEBUG message.
public static void debug(String message, Array<Object> arguments)
Logs a DEBUG message with the given arguments.
public static void debug(String message, Throwable exception)
Logs a DEBUG message with the given exception.
public static void debug(String message, Supplier<String> parameterSupplier)
Logs an ERROR message with a given lazy calculated parameter.
Link copied to clipboard
public static void error(String message)
Logs an ERROR message.
public static void error(String message, Array<Object> arguments)
Logs an ERROR message with the given arguments.
public static void error(String message, Throwable exception)
Logs an ERROR message with the given exception.
public static void error(String message, Throwable exception, Array<Object> arguments)
Logs an ERROR message with the given exception and arguments.
public static void error(String message, Throwable exception, Supplier<String> parameterSupplier)
Logs an ERROR message with the given exception and a lazy calculated parameter.
Link copied to clipboard
public static void info(String message)
Logs an INFO message.
public static void info(String message, Array<Object> arguments)
Logs an INFO message with the given arguments.
Link copied to clipboard
public static boolean isDebugEnabled()
Checks whether log entries at DEBUG level will be output.
Link copied to clipboard
public static boolean isErrorEnabled()
Checks whether log entries at ERROR level will be output.
Link copied to clipboard
public static boolean isInfoEnabled()
Checks whether log entries at INFO level will be output.
Link copied to clipboard
public static boolean isTraceEnabled()
Checks whether log entries at TRACE level will be output.
Link copied to clipboard
public static boolean isWarnEnabled()
Checks whether log entries at WARNING level will be output.
Link copied to clipboard
public static Level level()
Returns the current log level specifying which message levels will be logged.
public static void level(Level level)
Sets the log level specifying which message levels will be logged.
Link copied to clipboard
public static void off()
Disables logging by setting the log level to OFF.
Link copied to clipboard
public static void trace(Supplier<String> msgSupplier)
Logs a lazily constructed TRACE message.
public static void trace(String message, Array<Object> arguments)
Logs a TRACE message with the given arguments.
Link copied to clipboard
public static void warn(String message)
Logs a WARNING message.
public static void warn(String message, Array<Object> arguments)
Logs a WARNING message with the given arguments.
public static void warn(String message, Throwable exception)
Logs a WARNING message with the given exception.
public static void warn(Throwable exception, Supplier<String> msgSupplier)
Logs a lazily constructed WARNING message with the given exception.